#ifndef SYSTEMDATA_H
#define SYSTEMDATA_H

#include "Macro.h"
#include "ShapeData.h"
#include "RectangleData.h"
#include "EllipseData.h"
#include "TriangleData.h"
#include "LineData.h"
#include "PenColor.h"
#include "Pentagon.h"

#include <QVector>

class CDrawWidget; //声明绘画窗口

class CSystemData
{
    friend CDrawWidget; //声明绘画窗口类为友元类
public:
    static CSystemData* GetSystemData();

private:
    CSystemData();
    ~CSystemData();

private:
    static CSystemData g_SystemData;

    QVector<CShapeData* > m_ShapeVec;  //图形对象地址容器

};

#endif // SYSTEMDATA_H
